import request from "@/utils/request";
//获取常量类map
export function getMaps(){
    return request({
        url:`/api/v1/warehouse/goods/material/map`,
        method:'GET',
    })
}
//查询物料
export function addItems(params){
    return request({
        url:`/api/v1/warehouse/goods/material/query`,
        method:'POST',
        data:params
    })
}
//查询库房物料
export function editKeyCodes(params){
    return request({
        url:`/api/v1/warehouse/account/list`,
        method:'POST',
        data:params
    })
}
//物料库房下拉框
export function getGoodsList(params){
    return request({
        url:`/api/v1/warehouse/setting/list`,
        method:'POST',
        data:params
    })
}
//物料详情
export function FindReturnDetails(Id){
    return request({
        // url:`/api/v1/warehouse/material_receive_return/FindReturn/${Id}`,
        url:`/api/v1/warehouse/account/detail/${Id}`,
        method:'GET',
    })
}
//出入库记录
export function updateGoodsState(params){
    return request({
        url:`/api/v1/warehouse/account/detail/list`,
        method:'POST',
        data:params
    })
}
//物料更换位置
export function updateloaution(params){
    return request({
        url:`/api/v1/warehouse/account/position/change`,
        method:'POST',
        data:params
    })
}
//物料导出
export function loaution(params){
    return request({
        url:`/api/v1/warehouse/account/export/excel`,
        method:'POST',
        data:params
    })
}
// 物料管理停用接口
export function ReturnDetails(Id){
    return request({
        // url:`/api/v1/warehouse/material_receive_return/FindReturn/${Id}`,
        url:`/api/v1/warehouse/account/stop/${Id}`,
        method:'GET',
    })
}
//物料修改记录
export function FindDetails(Id){
    return request({
        // url:`/api/v1/warehouse/material_receive_return/FindReturn/${Id}`,
        url:`/api/v1/warehouse/material_receive_return/FindMaterialLog/${Id}`,
        method:'GET',
    })
}